/**
 * jims
 */
package com.jims.master.modules.patient.myRecord.service;

import com.jims.master.common.service.CrudService;
import com.jims.master.modules.patient.myRecord.dao.CasePrescriptionDao;
import com.jims.master.modules.patient.myRecord.entity.CasePrescription;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;


/**
 * 同步his处方Service
 * @author chent
 * @version 2017-09-20
 */
@Service
@Transactional(readOnly = true)
public class CasePrescriptionService extends CrudService<CasePrescriptionDao, CasePrescription> {

	@Transactional(readOnly = false)
	public int insert(CasePrescription casePrescription) {
		return dao.insert(casePrescription);
	}

	public List<CasePrescription> getByClinicId(String clinicId){
		return dao.getByClinicId(clinicId);
	}



}